<%@ Page Async="true" Title="Create Distributor" Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="CreateDistributor.aspx.cs" Inherits="CreateDistributor" %>
<%@ Register Src="Controls/UserProfile.ascx" TagName="UserProfile" TagPrefix="ample" %>

<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" Runat="Server">

    <script src="Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="Scripts/AmpleJS.js" type="text/javascript"></script>     
    
    <div style="margin-left:auto;margin-right:auto; margin-top: 5%; position:relative; width:450px ">
        <asp:Wizard ID="CreateUserWizard1" runat="server" BackColor="#E3EAEB" 
            BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="1px" 
            Font-Names="Verdana" Font-Size="0.7em" 
            DisplaySideBar="false" ActiveStepIndex="0">
            <FinishNavigationTemplate>
                
            </FinishNavigationTemplate>
            <NavigationButtonStyle BackColor="White" BorderColor="#C5BBAF" 
                BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
                ForeColor="#1C5E55" />
            <HeaderStyle BackColor="#666666" BorderColor="#E6E2D8" BorderStyle="Solid" 
                BorderWidth="2px" Font-Bold="True" Font-Size="0.9em" ForeColor="White" 
                HorizontalAlign="Center" />
            <StepNavigationTemplate>
                <asp:Button ID="StepPreviousButton" runat="server" BackColor="White" 
                    BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                    CausesValidation="False" CommandName="MovePrevious" Font-Names="Verdana" 
                    ForeColor="#1C5E55" Text="Previous" />
                <asp:Button ID="StepNextButton" runat="server" BackColor="White" 
                    BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                    CommandName="MoveNext" Font-Names="Verdana" ForeColor="#1C5E55" Text="Next" />
            </StepNavigationTemplate>
            <StepStyle BorderWidth="0px" />
            <StartNavigationTemplate>
                
            </StartNavigationTemplate>
            <WizardSteps>
                <asp:WizardStep runat="server">
                    <ample:UserProfile ID="UserProfile2" IsRegister="true" runat="server" /> 
                    
                    <br />
                    <br />
                    <div style="margin-left: 130px">
                        <asp:CheckBox ID="chkTerms" runat="server" Checked = "false" EnableViewState="false" Text="I accept Distributor Terms and Conditions."/>
                        <br />
                        <asp:Button ID="btnSubmit" runat="server" BackColor="White" 
                            BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                            Font-Names="Verdana" ForeColor="#1C5E55" Text="Submit" OnClick="btnSubmit_Click" 
                            ValidationGroup="CreateUser" EnableViewState="false"/>
                        <asp:Button ID="btnCancel" runat="server" BackColor="White" 
                            BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                            Font-Names="Verdana" ForeColor="#1C5E55" Text="Cancel" PostBackUrl="~/Default.aspx" />   
                    </div>
                </asp:WizardStep>
                <asp:WizardStep ID="CompleteWizardStep1" runat="server">
                                           
                    <table border="0" style="font-family:Verdana;font-size:100%;">
                        <tr>
                            <td align="center" colspan="2" 
                                style="color:White;background-color:#1C5E55;font-weight:bold;">
                                Complete</td>
                        </tr>
                        <tr>
                            <td>
                                Thank you for registering. Your account has been successfully created on.<br />
                                <br />
                                <b>Your Distributor Id is <asp:Label ID="lblID" runat="server" Text='<%= this.UserName %>'></asp:Label></b> 
                                <br />
                                But you will not be able to login right now.<br />
                                You will recieve a email after Administators approves your account.<br />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" colspan="2">
                                <asp:Button ID="ContinueButton" runat="server" BackColor="White" 
                                    BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                                    CausesValidation="False" Font-Names="Verdana" 
                                    ForeColor="#1C5E55" Text="Continue" PostBackUrl="~/Default.aspx"/>
                            </td>
                        </tr>
                    </table>
                </asp:WizardStep>
            </WizardSteps>            
        </asp:Wizard>
    </div>
</asp:Content>

